package org.ricks.common.conf;

import java.util.Set;
import java.util.concurrent.TimeUnit;

/**
 * @author chenwei
 * @Title:
 * @Package
 * @Description:
 * @date 2020/8/716:59
 */
public abstract class AbstractConfProcessor {

    private static ClassHandler classHandler;
    protected static Set<Class<?>> classSet;

    private static int interval = 10;
    private static TimeUnit unit = TimeUnit.SECONDS;

    public static void init() {
        classHandler = ClassHandler.getClassHandler();
        classSet = classHandler.getClassSet();//扫描包类
        SourceHandler.getSourceHandler().loadSource();
    }


    public abstract void process();

}
